package com.simple.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Data
public class FundDTO {
    private Integer id;
    private Integer userId;
    private String username;
    private String fundName;
    private Double buyMoney;
    private Double sellMoney;
    private Double currentMoney;
    private Integer status;
    private Integer location;
    private Double profit;
    private String buyTime;
    private String expirationTime;
    private String sellTime;
    private Date createTime;
    private Date updateTime;
    private Integer del;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Integer pageSize = 5;
    private Integer pageNum = 0;

}